<table style="width: 100%;" cellpadding="4" cellspacing="0" border="0">
	<tr>
		<td class="border2">

			<table style="width: 100%;" class="mainmenu5" cellpadding="0" cellspacing="0" border="0">
				<tr>
					<td width="7"><img src="design/pic/spacer.gif" class="sqr1" alt="" height="7" width="7" /></td>
					<td class="block_header">{$sBoxName}</td>
				</tr>
			</table>

<table style="width: 100%;" cellpadding="5" cellspacing="5">
	<tbody>
	{if $sType == 'crush'}
	<tr>
		<td style="vertical-align: top; font-size: 8pt;" class="color">
			<div style="font-size: 10pt;">{messages block="ViewCr"}</div>
			<b>{language text='Mod_Messenger.crush.sent.on'}:</b> {$aMess.time|date_format:$sDateTimeFormat}<br /><br />
			<table style="width: 100%;" cellpadding="4">
			<tbody>
				<tr>
					<td style="vertical-align: top; font-size: 8pt; width: 10%;">
						<img src="{$aMess.title}" alt="" height="48" width="48" />
					</td>
					<td style="vertical-align: top; font-size: 8pt; width: 90%;" class="color">
						{$aMess.text|process_code}
						{if $aMess.to == $sUser}
						{if $aMess.seen != 3}
	 					<br /><br /> {language text="guess_who"}
						<br /><br />
						<a name="guess"></a>
						<div class="border13" style="padding: 5px;">
							<b>{language text="guess_who_sent_you_this_message"}:</b>
							<br /><br />
							<form action="{$sUrl}" method="post">
								<input class="" id="username" name="user" size="30" onfocus="this.className='inputmain';" onblur="this.className='';" type="text" />
								<input name="act[Guess]" value="{language text="guess"}" style="cursor: pointer;" type="submit" />
							</form>
						</div>
						{/if}
						{/if}
					</td>
				</tr>
			</tbody>
			</table>
		</td>
	</tr>
	{else}
		<tr>
			<td style="width: 20%; text-align: center;">
		{if $aMess.from!='System'}
			{if $bIsSent}
				<a href="{url link=public.user name=$aMess.to}">
                    {Account::Avatar sUser=$aMess.to iSize=60 class="pic1" onmouseover="showInfo5('`$aMess.to`', '', '');this.className='pic2';" onmouseout="this.className='pic1';return nd();"}
				</a>
			{else}
				<a href="{url link=public.user name=$aMess.from}">
                    {Account::Avatar sUser=$aMess.from iSize=60 class="pic1" onmouseover="showInfo5('`$aMess.from`', '', '');this.className='pic2';" onmouseout="this.className='pic1';return nd();"}
				</a>
			{/if}
		{else}	
			<img src="/design/pic/noimage_100.jpg">	
		{/if}
			</td>
			<td style="font-size: 9pt; width: 80%;" class="color">
			<table style="width: 100%;">
				<tbody>
					<tr>
						<td style="font-size: 9pt; width: 20%; text-align: right;"
							class="color"><b>{if $bIsSent}{language text="to_224"}{else}{language text="from"}{/if}</b>:</td>
						<td style="width: 80%;" class="color">
							{if $bIsSent}<a class="link_description" href="{url link=public.user name=$aMess.to}">{$aMess.to}{else}{if $aMess.from!='System'}<a class="link_description" href="{url link=public.user name=$aMess.from}">{/if}{$aMess.from}{/if}</a></td>
					</tr>
					<tr>
						<td style="font-size: 9pt; width: 20%; text-align: right;"
							class="color"><b>{language text="date_399"}</b>:</td>
						<td style="font-size: 9pt; width: 80%;" class="color">{$aMess.time|date_format:$sDateTimeFormat}</td>

					</tr>
					<tr>
						<td style="font-size: 9pt; width: 20%; text-align: right;"
							class="color"><b>{language text="subjects"}</b>:</td>
						<td style="font-size: 9pt; width: 80%;" class="color">{$aMess.title|process_code}</td>
					</tr>
				</tbody>
			</table>
			</td>
		</tr>
	</tbody>
</table>
<table style="width: 100%;" cellpadding="5" cellspacing="5">
	<tbody>
		<tr>
			<td style="font-size: 9pt;" class="color">{$aMess.text|process_code}
			<br /><br /><br />
			<table style="width: 100%;" class="border2">
				<tbody>
					<tr>
						<td style="width: 70%; font-size: 8pt;" class="color">

						<table>
							<tbody>
								<tr>
                                    {if !$bIsSent}
                                    {if $aMess.from!='System'}
									<td class="mainmenu6"
										onclick="javascript:window.location.href='{url link=public.account.messages.compose user=$aMess.from rep=$aMess.id}';"
										onmouseover="this.className='mainmenu7';"
										onmouseout="this.className='mainmenu6';"><a class="link_action"
										href="{url link=public.account.messages.compose user=$aMess.from rep=$aMess.id}">{language text="reply"}</a>
									</td>
									<td>&nbsp;</td>
									<td class="mainmenu6"
										onclick="javascript:window.location.href='{url link=public.account.messages.compose user=$aMess.from quot=$aMess.id}';"
										onmouseover="this.className='mainmenu7';"
										onmouseout="this.className='mainmenu6';"><a class="link_action"
										href="{url link=public.account.messages.compose user=$aMess.from quot=$aMess.id}">{language text="quote"}</a>
									</td>
									{/if}
									<td>&nbsp;</td>
                                    {/if}
									<td class="mainmenu6"
										onclick="javascript:window.location.href='{url link=public.account.messages.view box=$sBox del=$aMess.id}';"
										onmouseover="this.className='mainmenu7';"
										onmouseout="this.className='mainmenu6';">{language text="delete"}
									</td>
								</tr>
							</tbody>
						</table>

						</td>
						<td style="width: 30%; font-size: 8pt; text-align: right;" class="color">
						{if $aNav}
						{if $aNav.1}<a href="{url link=public.account.messages.view id=$aNav.1}">
						      <img src="{$sStylePath}button_back.gif" alt="" onmouseover="showInfo2('{language text="previous_message"}');" onmouseout="return nd();">
						  </a>
						{/if}
						{if $aNav.0}<a href="{url link=public.account.messages.view id=$aNav.0}">
						      <img src="{$sStylePath}button_fw.gif" alt="" onmouseover="showInfo2('{language text="next_message"}');" onmouseout="return nd();">
						  </a>
						{/if}
						{/if}
					  </td>
					</tr>
				</tbody>
			</table>
			</td>
		</tr>
		{/if}
	</tbody>
</table>

		</td>
	</tr>
</table>